﻿<%@ Page Title="Coca-Cola 添加销售点" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="AddSite.aspx.cs" Inherits="PCMSofCC.Admin.AddSite" %>

<%@ Register Src="~/GoogleMapForASPNet.ascx" TagName="GoogleMapForASPNet" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link href="../css/content.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div id="container" class="container">
            <div id="sidebar" class="sidebar">
                <div id="addNodeDataForm" class="addNodeDataForm">
                    名字：<br />
                    <asp:TextBox ID="SiteName" CssClass="textBox" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" 
                        ControlToValidate="SiteName" Font-Bold="True" Font-Size="Large" 
                        ForeColor="White"></asp:RequiredFieldValidator><br />
                    <p>
                    </p>
                    编号：<br />
                    <asp:TextBox ID="SiteNumber" CssClass="textBox" runat="server"></asp:TextBox><br />
                    <p>
                    </p>
                    地址：<br />
                    <asp:TextBox ID="SiteAddress" CssClass="textBox" runat="server"></asp:TextBox><br />
                    <p>
                    </p>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            位置：<br />
                            <asp:Literal ID="lblPosition" runat="server" Text="经纬度"></asp:Literal><br />
                            <p>
                            </p>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    公司：<br />
                    <asp:DropDownList CssClass="dropDownList" ID="SiteCompany" runat="server" DataSourceID="SqlDataSource1"
                        DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList>
                    <p>
                    </p>
                    <br />
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"
                        SelectCommand="SELECT * FROM [Company]"></asp:SqlDataSource>
                    <br />
                    <asp:Button ID="Submit" CssClass="button2" runat="server" Text="添加" OnClick="Submit_Click" />
                    <input type="reset" class="button2" value="重置" id="reset" />
                </div>
            </div>
            <div id="content" class="content">
                <uc1:GoogleMapForASPNet ID="GoogleMapForASPNet1" runat="server" />
            </div>
        </div>
    </body>
    </html>
</asp:Content>
